{extend name="layout/default" /}

{block name="content"}
<div class="content">
    <div class="today-banner">
        <img src="__CDN__/assets/img/banner.png" alt="">
    </div>
    <div class="content-block" style="margin-top: 1rem;">
        <div class="today-time">
            {:date('Y年m月d日')}
        </div>
        {if condition="$today_course"}
        <a href="{:url('course/read', ['course_id' => $today_course['id']])}" class="today-read">
            <h2>今日营养要点</h2>
            <p>{$today_course.title}</p>
            <span>-></span>
        </a>
        {else/}
        <a href="javascript:;" class="today-read">
            <h2>今日营养要点</h2>
            <p>您已完成服务</p>
            <span>-></span>
        </a>
        {/if}
    </div>
</div>
{/block}
